//
//  XQHomeBigInstitutionsView.m
//  JoinPeso
//
//  Created by 小琦 on 2024/11/19.
//

#import "XQHomeBigInstitutionsView.h"

@interface XQHomeBigInstitutionsView()
@property (nonatomic,strong) UILabel *institutionsLb;
@property (nonatomic,strong) UIImageView *institutionsImageView;
@end

@implementation XQHomeBigInstitutionsView

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self makeUI];
        [self makeConstraints];
    }
    return self;
}

- (void)makeUI {
    [self addSubview:self.institutionsLb];
    [self addSubview:self.institutionsImageView];
}

- (void)makeConstraints {
    [self.institutionsLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(@0);
        make.left.equalTo(@16);
    }];
    [self.institutionsImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.institutionsLb.mas_bottom).offset(10);
        make.left.equalTo(@16);
        make.right.equalTo(@-16);
        make.bottom.equalTo(@0);
    }];
}

#pragma mark - lazy

- (UILabel *)institutionsLb {
    if (!_institutionsLb) {
        _institutionsLb = [[UILabel alloc] init];
        _institutionsLb.text = @"Supported by numerous institutions";
        _institutionsLb.textColor = [UIColor colorWithHexString:@"#0E1D31"];
        _institutionsLb.font = [UIFont boldSystemFontOfSize:16];
    }
    return  _institutionsLb;
}

- (UIImageView *)institutionsImageView {
    if (!_institutionsImageView) {
        _institutionsImageView = [[UIImageView alloc] init];
        _institutionsImageView.image = [UIImage imageNamed:@"home_institutions"];
    }
    return _institutionsImageView;
}



@end
